# -----------------------------------------------
# Author: yuz
# Copyright: 湖南零檬信息技术有限公司
# Email: wagyu2016@163.com
# Phone&Wechat: 18173179913
# Site: http://www.lemonban.com
# Forum: http://testingpai.com
# -----------------------------------------------
import requests

# 发送请求：1、url, 2, 请求方法

url = 'http://httpbin.org/get'
# 发送 get 请求

query_string = {"username": "yuze"}
headers = {"xxx": "yyy", "age": "18", "token": "fowoepfwfe"}
body = {"a": "b"}
response = requests.get(url, params=query_string, headers=headers, data=body)

print(response.text)

